//
//  ASSession+Certificate.h
//  AppleAuth
//
//  Created by 吴双 on 2023/1/23.
//

#import "ASSession.h"

@class ALTCertificate;

@interface ASTeamSession (Certificate)

- (void)fetchCertificates:(void (^ _Nullable)(NSArray<ALTCertificate *> *_Nullable certificates, NSError *_Nullable error))completion;

- (void)addCertificateWithMachineName:(NSString * _Nonnull)name
                            completed:(void (^ _Nullable)(ALTCertificate *_Nullable certificate, NSError *_Nullable error))completion;

- (void)revokeCertificate:(ALTCertificate * _Nonnull)certificate
                completed:(void (^ _Nullable)(BOOL success, NSError *_Nullable error))completion;

@end
